//
//  NvCompileAndSaveViewController.h
//  NvSellerShow
//
//  Created by Meicam on 2017/2/16.
//  Copyright © 2017年 Meicam. All rights reserved.
//  保存界面

#import <UIKit/UIKit.h>
#import "NvsLiveWindow.h"
#import "NvPlaySlider.h"
#import "NvsStreamingContext.h"
#import "Utils.h"
#import "MsViewController.h"

@interface NvCompileAndSaveViewController : UIViewController <NvsStreamingContextDelegate>

@property (nonatomic, assign) NvSSVideoCreateScale editmode;
@property (weak, nonatomic) IBOutlet NvsLiveWindow *liveWindow;

@property (weak, nonatomic) IBOutlet UIButton *playBtn;
@property (weak, nonatomic) IBOutlet UITextField *textField;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *liveWindow1x1AspectConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *liveWindow16x9AspectConstraint;
@property (weak, nonatomic) IBOutlet UILabel *curLabel;
@property (weak, nonatomic) IBOutlet UILabel *endLabel;
@property (weak, nonatomic) IBOutlet NvPlaySlider *nvSlider;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topLayoutConstraint;
@property (weak, nonatomic) IBOutlet UIView *inputView;

@property (strong, nonatomic) NvsStreamingContext *streamingContext;
@property (strong, nonatomic) NvsTimeline *timeline;
@property (copy, nonatomic) NSString *modelUUID;

@property (assign, nonatomic) BOOL isPlaying;
@property (strong, nonatomic) NSDictionary *draftDict;

- (IBAction)sliderValueChanged:(id)sender;
- (IBAction)saveToLocal:(id)sender;
- (IBAction)saveAndUpload:(id)sender;

- (IBAction)play:(id)sender;

@end
